<table align="center" width="80%">
<tr>
  <td class="table5" align="center" colspan="8"><B>List Of Created Final Master</B></td>
</tr>
<tr>
  <td class="table1" align="center">&nbsp;</td>
  <td class="table1" align="center"><B>Sr. No.</B></td>
  <td class="table1" align="center"><B>Customer</B></td>
	<td class="table1" align="center"><B>Challan No</B></td>
	<td class="table1" align="center"><B>Date</B></td>
	<td class="table1" align="center"><B>Challan Type</B></td>
  <td class="table1" align="left">SubCategory</td>
  <td class="table1" align="center">Item</td>
  <td class="table1" align="center">Quantity</td>
</tr>
{section name="sec1" loop=$deliveryChallanArray}
	{section name="sec2" loop=$deliveryDetailArray[sec1]}
	<tr>
		{if $deliveryDetailArray[sec1][sec2].display == 1}
	    <td class="table3" align="center" NOWRAP>
	    	<a href="proforma.php?masterDeliveryId={$deliveryDetailArray[sec1][sec2].masterDeliveryId}">
	    	  Proceed For Bill
	      </a>
	    </td>
	    <td class="table3" align="center">{$smarty.section.sec1.iteration}</td>
	    <td class="table3" align="center">{$deliveryDetailArray[sec1][sec2].companyName}</td>
	  {else}
	    <td class="table3" align="center">&nbsp;</td>
	    <td class="table3" align="center">&nbsp;</td>
	    <td class="table3" align="center">&nbsp;</td>
	  {/if}
		<td class="table3" align="center">{$deliveryDetailArray[sec1][sec2].srNo}</td>
		<td class="table3" align="center" NOWRAP>{$deliveryDetailArray[sec1][sec2].delivaryDate}</td>
		<td class="table3" align="center">{$deliveryDetailArray[sec1][sec2].challanType}</td>
	  <td class="table3" align="left">{$deliveryDetailArray[sec1][sec2].subCategoryName}</td>
	  <td class="table3" align="center">{$deliveryDetailArray[sec1][sec2].itemName}</td>
	  <td class="table3" align="center">{$deliveryDetailArray[sec1][sec2].quantity}</td>
	</tr>
  {/section}
{/section}
</table>
<br />